<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>宿舍信息列表</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
<!--宿舍信息修改框-->
<form class="layui-form layui-form-pane" >
    <blockquote class="layui-elem-quote layui-text">
        宿舍信息修改
    </blockquote>
    <input name="dormitoryId" th:value="${dormitory.dormitoryId}" class="layui-input" type="hidden"autocomplete="off">
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍编号：</label>
        <div class="layui-input-inline">
            <input name="dormitoryCode" th:value="${dormitory.dormitoryCode}" id="dormitoryCode" class="layui-input" type="text" placeholder="请输入编号" autocomplete="off"
                   lay-verify="required">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属公寓：</label>
        <div class="layui-input-block" style="width: 40%;">
            <select name="dormitoryApartment"  lay-verify="required" lay-filter="apartmentName" id="apartmentName">
                <option th:value="${dormitory.dormitoryApartment}" th:text="${dormitory.dormitoryApartment}" value=""></option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">公寓状态：</label>
        <div class="layui-input-block">
            <input type="radio" name="dormitoryStatus" th:checked="${dormitory.dormitoryStatus}==1 ? true : false" value="1" title="启用">
            <input type="radio" name="dormitoryStatus" th:checked="${dormitory.dormitoryStatus}==0 ? true : false" value="0" title="禁用" checked>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍长：</label>
        <div class="layui-input-block" style="width: 40%;">
            <select name="dormitoryHeader" lay-verify="" lay-filter="Header" >
                <option th:each="bed:${bedList}" th:value="${bed.bedName}" th:text="${bed.bedName}" value=""></option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="updatedormitory">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script src="/layui/layui.js"></script>
<script src="/js/dormitory.js"></script>
</body>
</html>